3 ms·
It's unfortunate that Ruby's import semantics hasn't been improved upon by Crystal, i.e. you can only import all definitions from a file - no selective imports
by arunix 4y ago
It's unfortunate that Ruby's import semantics hasn't been improved upon by Crystal, i.e. you can only import all definitions from a file - no selective imports like with Python and many other languages (even Perl gets this right).
- sph 4y agoTrue, selective imports are easier to understand, but not as readable than a list of `require`. Also, supports glob loading, which is better than JS import keyword.