This has been missing since forever.
Instead of:
It's be nice to have:
or even, with auto-coercion:
I have a PR which adds that function - and auto-coercion - to the ASH RuntimeLibrary. Once it is merged, scripts that have their own version of this, having noticed the glaring omission, will get a compile error since they are overriding a function in the RuntimeLibrary.
If I recall, we had a similar situation when gausie added to_path(string).
What did we do?
What if we made that a warning, rather than an error?
Instead of:
Code:
buffer buf;
buf.append("Initial content");
It's be nice to have:
Code:
buffer buf = to_buffer("Initial content");
or even, with auto-coercion:
Code:
buffer buf = "Initial content";
I have a PR which adds that function - and auto-coercion - to the ASH RuntimeLibrary. Once it is merged, scripts that have their own version of this, having noticed the glaring omission, will get a compile error since they are overriding a function in the RuntimeLibrary.
If I recall, we had a similar situation when gausie added to_path(string).
What did we do?
What if we made that a warning, rather than an error?