Stubbing in Julia?


#1

In Scala, for example, ??? is defined as throwing a NotImplementedException, is there something similar in julia for stubbing functions?


#2

You can define a function without adding any methods to it with the:

function foo end

syntax. This makes the binding foo available as a function, but upon calling it you’ll get a method error. Most any Julia user quickly realizes that method errors occur when an implementation is missing.


#3

Perfect, I forgot that was syntactically allowed. Thanks!