Underscore.go
11–20 of 62 posts
Re: Underscore.go
#12Re: Underscore.go
#13Underscore was chosen in JS presumably because it is a valid variable name that isn't used for anything. Underscore in Go actually means something, which is why this is actually double -underscore, which makes it even visually more confusing. The approach is interesting, but I'd really rather see a better name.
Re: Underscore.go
#14Re: Underscore.go
#15Underscore was chosen in JS presumably because it is a valid variable name that isn't used for anything. Underscore in Go actually means something, which is why this is actually double -underscore, which makes it even visually more confusing. The approach is interesting, but I'd really rather see a better name.
But unfortunately, from a quick glance it looks like Go's doesn't, is that correct?
Re: Underscore.go
#16Underscore was chosen in JS presumably because it is a valid variable name that isn't used for anything. Underscore in Go actually means something, which is why this is actually double -underscore, which makes it even visually more confusing. The approach is interesting, but I'd really rather see a better name.
Module systems really ought to allow renaming on import. (Such as: rename individual functions, add a prefix to all of the functions, or even do a regexp style replace of all existing prefixes if any.) But unfortunately, from a quick glance it looks like Go's doesn't, is that correct?
Re: Underscore.go
#17Underscore was chosen in JS presumably because it is a valid variable name that isn't used for anything. Underscore in Go actually means something, which is why this is actually double -underscore, which makes it even visually more confusing. The approach is interesting, but I'd really rather see a better name.
Module systems really ought to allow renaming on import. (Such as: rename individual functions, add a prefix to all of the functions, or even do a regexp style replace of all existing prefixes if any.) But unfortunately, from a quick glance it looks like Go's doesn't, is that correct?
Re: Underscore.go
#18Yeah, I'm a bitch.
Re: Underscore.go
#19Underscore seems like it would not at all be a good fit for Golang. Golang really wants you to just use a for-loop.
Re: Underscore.go
#20Ew, now you can have an awkward weak implementation of some FP ideas in Go too. Yeah, I'm a bitch.