December 09, 2018 Automatic type expansion of functions to delegates? | ||||
---|---|---|---|---|
| ||||
Hey, do you think it would be possible for D to automatically expand more types, such as promoting functions to delegates? This would save us from having to write some boilerplate code. |
December 09, 2018 Re: Automatic type expansion of functions to delegates? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Pennebaker | On Sunday, 9 December 2018 at 02:02:51 UTC, Andrew Pennebaker wrote: > Hey, do you think it would be possible for D to automatically expand more types, such as promoting functions to delegates? This would save us from having to write some boilerplate code. It is pretty simple to just call toDelegate to do that conversion. D is unlikely to get more automatic conversions going forward, especially of built-ins. http://dpldocs.info/experimental-docs/std.functional.toDelegate.html |
Copyright © 1999-2021 by the D Language Foundation