Shorthand Error Syntax
kaiserprogrammer opened this issue · 2 comments
kaiserprogrammer commented
Error class is not reserved in ruby, so it will be likely created and used.
Using Shorthand Error Syntax with or operator can lead to undefined classes.
Example:
class Error; end
require "mustermann/sinatra"
mustermann-1.0.0/lib/mustermann/ast/translator.rb:98:in `class:Translator': uninitialized constant Mustermann::Error (NameError)
namusyaka commented
@kaiserprogrammer Could you confirm #66?
kaiserprogrammer commented
It Works!