Questions(ss) about function import and type, parsing, OCaml code importing, compiling and regex syntax

Regarding the first two questions:

  1. nope, you don’t need to import to define a method, you can also quality a name, eg

    Base.length(foo::Foo) = length(foo.contents)
    

    This is a design choice for Julia.

  2. See this discussion about function types for pointers.

1 Like