On Fri, Jan 20, 2012 at 9:40 AM, Robert Clipsham <rob...@octarineparrot.com> wrote: > Just came across this amusing 4 minute video: > > https://www.destroyallsoftware.com/talks/wat > > Anyone have any other WATs you can do in other languages? Bonus points for > WATs you can do in D. > > -- > Robert > http://octarineparrot.com/
Maybe a WAT for people new to D. I personally found this to be confusing and inconsistent. float[4] sa = [1, 2, 3, 4]; float[] da = [1, 2, 3, 4]; fill(da, map!(sqrt)(da)); // works fill(sa, map!(sqrt)(sa)); // doesn't work fill(sa[], map!(sqrt)(sa[])); // ok