by anonova · 7y ago · 0 comments
> # typed: true
Isn't this called a directive/pragma? A sigil is a symbol on a name.
Either way, I'm excited to see this finally out after seeing the past presentations on it.
> Google defines sigil as, “an inscribed or painted symbol considered to have magical power,” and we like to think of types as pretty magical
Now's the time to fix that stuff.
(In any case, I'm quite keen to start playing with sorbet, looks great!)
test/test_corpus.cc
364: auto checkPragma = [&](string ext) {
368: << "Missing `# typed:` pragma. Sources with ." << ext << ".exp files must specify # typed:";
377: checkPragma("cfg");
A quick look at the source shows that it may have been called pragma at one point.EDIT: I'm guessing "sigil" was chosen because it's closely matching the "signatures" or Sigil.sig method name?
https://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/vari...