www.digitalmars.com         C & C++   DMDScript  

digitalmars.dip.ideas - simple ranges

reply monkyyy <crazymonkyyy gmail.com> writes:
In light of phobo`s code sometimes having growing complexity in 
implementations, it maybe nice if every range function had a 
`*Simple` such as `mapSimple` that had no overloading, no type 
checks, no default parameters, etc.

For canonical reference of behavior, debuging meta programming, 
and bandaiding if someone broke type inference inside template 
hell.
Aug 28
next sibling parent reply Kapendev <alexandroskapretsos gmail.com> writes:
On Thursday, 28 August 2025 at 21:26:18 UTC, monkyyy wrote:
 In light of phobo`s code sometimes having growing complexity in 
 implementations, it maybe nice if every range function had a 
 `*Simple` such as `mapSimple` that had no overloading, no type 
 checks, no default parameters, etc.

 For canonical reference of behavior, debuging meta programming, 
 and bandaiding if someone broke type inference inside template 
 hell.
[Code example?](https://www.youtube.com/live/Ou4KUBjr_78?si=aG8ImIpQ31B5Qo9R&t=18101)
Aug 28
parent Monkyyy <crazymonkyyy gmail.com> writes:
On Friday, 29 August 2025 at 02:10:34 UTC, Kapendev wrote:
 On Thursday, 28 August 2025 at 21:26:18 UTC, monkyyy wrote:
 In light of phobo`s code sometimes having growing complexity 
 in implementations, it maybe nice if every range function had 
 a `*Simple` such as `mapSimple` that had no overloading, no 
 type checks, no default parameters, etc.

 For canonical reference of behavior, debuging meta 
 programming, and bandaiding if someone broke type inference 
 inside template hell.
[Code example?](https://www.youtube.com/live/Ou4KUBjr_78?si=aG8ImIpQ31B5Qo9R&t=18101)
Help thread earlier today about dense meta programming cycle bug where the cycle off the top of my head worked. Also basically whenever Phobos type checking is to agressive.
Aug 28
prev sibling parent reply Dukc <ajieskola gmail.com> writes:
On Thursday, 28 August 2025 at 21:26:18 UTC, monkyyy wrote:
 In light of phobo`s code sometimes having growing complexity in 
 implementations, it maybe nice if every range function had a 
 `*Simple` such as `mapSimple` that had no overloading, no type 
 checks, no default parameters, etc.
https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
Aug 29
parent Monkyyy <crazymonkyyy gmail.com> writes:
On Friday, 29 August 2025 at 14:32:16 UTC, Dukc wrote:
 On Thursday, 28 August 2025 at 21:26:18 UTC, monkyyy wrote:
 In light of phobo`s code sometimes having growing complexity 
 in implementations, it maybe nice if every range function had 
 a `*Simple` such as `mapSimple` that had no overloading, no 
 type checks, no default parameters, etc.
https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/
Let me just make your argument for you:
 It’s important to remember that when you start from scratch 
 there is absolutely no reason to believe that you are going to 
 do a better job than you did the first time
I don't make false negative type inference bugs with this one weird trick that the standard style guide doesn't want you to know about
Aug 29