[Issue 17861] UTF Decode fails with exception

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 3 22:49:30 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17861

--- Comment #14 from Jon Degenhardt <jrdemail2000-dlang at yahoo.com> ---
Changing the default behavior for the individual functions would cause backward
compatibility issues. Any thoughts on having run-time selectable behavior that
would override the defaults? The default behavior could be left unchanged.

The two issues that come to mind:
- Functions currently nothrow could lose that status if throw is an option.
- Performance: Compile-time choices are faster than run-time.

The advantage of a run-time selectable behavior is that it would support the
need many programs have for an application specific behavior. There is no
single default appropriate for all cases.

--


More information about the Digitalmars-d-bugs mailing list