[go-nuts] Programming paradigm.

2017-07-17 Thread Patrick Logan
If you want to do FP and only FP then you will be heartsick for an ML-like language and should use one of those. However there is a lot of room between "no FP" and "only FP"... call this "semi-functional" and Go accommodates this well. -- You received this message because you are subscribed to

[go-nuts] Programming paradigm.

2017-07-17 Thread Henry
This has me piqued. How do you do recursion without tail call optimization? As far as I know, Go compiler doesn't do tail call optimization. The heart of FP lies in the composability of function. Go supports higher order function, so you can compose functions albeit in a limited way. Without gen

[go-nuts] Programming paradigm.

2017-07-17 Thread Patrick Logan
I've not had any trouble doing functional programming in Go. Here's a snippet of a combinator-based parseri wrote... https://bitbucket.org/snippets/patrickdlogan/kE9bn/fp-in-go-is-not-bad-considering-the-simple -- You received this message because you are subscribed to the Google Groups "golan

[go-nuts] Programming paradigm.

2017-07-17 Thread Henry
Go is an imperative programming language, so it will be difficult to do any functional programming in Go. However, beyond that, Go does not lock you into any particular programming paradigm. You are free to choose anything from procedural to object oriented or anything in between and beyond. Go

Re: [go-nuts] Programming paradigm.

2017-07-16 Thread Rob Pike
This might help. https://talks.golang.org/2012/splash.article -rob On Mon, Jul 17, 2017 at 3:13 AM, Mayank Acharya wrote: > Dear all, > I am new to Go language. > > I searched a lot to understand it's paradigm structure but still not > getting clear idea about that. > > Please if anyone can e

[go-nuts] Programming paradigm.

2017-07-16 Thread Mayank Acharya
Dear all, I am new to Go language. I searched a lot to understand it's paradigm structure but still not getting clear idea about that. Please if anyone can explain, go language follows which programming paradigm with some clear example for understanding. I really appreciate responses. Thank y