4 ms·
> 1. The filename characters have to be valid D identifier characters. This annoys some people. this could be solved by allowing strings in qualified imports
by afiori 8y ago
> 1. The filename characters have to be valid D identifier characters. This annoys some people.
this could be solved by allowing strings in qualified imports
import "illegal identifier"."some more weird unicode" as someLib;
- AnIdiotOnTheNet 8y agoWhich, incidentally, is how Zig does it: const thing = @import("relative/path/to/thing.zig"); const package = @import("packagename");
- gpm 8y agoAnd rust `extern crate foo` `extern crate "foo-bar" as foo_bar` This is all legal identifiers but `use std::path::Path;` `use std::path::Path as int; // For maximum confusion` And not that anyone uses this part but: `mod bazz;` `#[path = "bazz-bar.rs"] mod bazz_bar;`