lukechampine/ply
View on GitHub ↗ ★ 126 Go
Painless polymorphism
10 mentions on Hacker News by 2 people: 0 stories, 10 comments · first 2017-01-09 · latest 2024-10-10
20082026
-
…what it's called! I did this in my compile-to-Go language, but I didn't know the name for it: https://github.com/lukechampine/ply?tab=readme-ov-file#suppo...
comment by nemo1618 · 2024-10-10 · in Fun with Go Iterators -
Check out my experiment with adding map/filter/reduce to Go: https://github.com/lukechampine/ply Ultimately I concluded that map/filter/reduce really need to be paired with a concise lambda syntax in order to be ergonomic. Writing out a…
comment by nemo1618 · 2019-03-14 · in The ups and downs of porting 50k lines of C++ to Go (2015) -
…have their true needs met by adding a few more built-ins to the language. I pursued that idea here: https://github.com/lukechampine/ply I sympathize with the programmers who really do need generics and would like to program in Go, because…
comment by nemo1618 · 2018-09-02 · in Notes on the Go2 Generics Draft -
You might be interested in my project: https://github.com/lukechampine/ply The idea is that when people say "generics", they usually just mean map/filter/reduce. So ply just bakes those into the language directly instead of adding new…
comment by nemo1618 · 2018-08-28 · in Go 2 Draft Designs -
…a compile-to-Go superset that adds some generic functions/methods. You may have come across it: https://github.com/lukechampine/ply My perspective was that when I find myself wishing for generics in Go, what I really want is not full-blown…
comment by nemo1618 · 2018-06-12 · in Show HN: Fo: An experimental language which adds generics on top of Go -
You might be interested in my side project: https://github.com/lukechampine/ply It's a small superset of Go that allows you to call map/filter/reduce methods on any slice. It's not true generics (you can't define your own generic functions…
comment by nemo1618 · 2017-07-13 · in Toward Go 2 -
…Go's primary strength is. btw, I'll take this opportunity to plug my own "Go generics" solution: https://github.com/lukechampine/ply . It's like a Coffeescript for Go that lets you use stream HOFs like map/filter/reduce without any runtime…
comment by nemo1618 · 2017-05-07 · in My Struggles with Rust -
…the code needs no generics at all. Having said that, I would not complain if the concept of Ply ( https://github.com/lukechampine/ply ) becomes part of standard Go.
comment by christophberger · 2017-04-20 · in A Mini-Guide to Google Golang and Why It's Perfect for DevOps -
You might be interested in my side project: https://github.com/lukechampine/ply IMO when people say they want generics in Go, they really just want a few functional-style methods and functions on slices (e.g. map, filter, reduce methods,…
comment by nemo1618 · 2017-03-24 · in 3.5 Years, 500k Lines of Go -
>generics seem like a pretty easy thing to write a preprocessor for I am basically doing this: https://github.com/lukechampine/ply Ply is like Go except you can write things like []int{1,2,3}.filter(even) and it will Just Werk. It's not…
comment by nemo1618 · 2017-01-09 · in Go and Dogma