Jonathan Müller
Jonathan Müller
This is a libclang limitation, unfortunately. I think it's related to #4.
I plan on adding that in the future. What I'm doing right now as a workaround is to manually parse `digits + period + digits`, capture that and call `std::stod`/`std::from_chars`...
https://godbolt.org/z/1WExWsod9 If you want to use a different decimal separator, you need to capture each `dsl::digits` part individually and then manually build a string in the format expected by `std::stod`.
I'm reopening this as I do want to add it properly.
> The matching doesn't seem to work as expected if I do this: https://godbolt.org/z/jWG4zoKTP Choice is ordered and takes the first branch that matches. When it sees `5.3` `dsl::integer` matches...
This just pushes the problem out to the user though. I think it's fine if we assume ASCII paths and just convert the string to wstring by static_cast'ing each char...
Is `copy` really necessary to be part of the language? If `ref` is implicit for function parameters, and copies for rvalues, the following should work as well, shouldn't it? ```carbon...
It seems like this is the full list of concepts that cannot be easily renamed into snake_case due to naming conflicts, or am I missing some? * `Ratio`: all instantiations...
> However, changing the types may lower compile-time errors and debugging experience as the user faces there types rather than concepts. How? It seems the type just inject a couple...
> 'shorthands for specifying template parameters' seems to me an excellent and perfectly reasonable use for concepts just as a class template is merely a shorthand for specifying many types....