4 ms·
Smart contracts are state transition systems. Whether you write them in a "functional" or "procedural" style is more or less a superficial syntactic question.
by mbrock 9y ago
Smart contracts are state transition systems. Whether you write them in a "functional" or "procedural" style is more or less a superficial syntactic question.
There's a lot of hot air being blown about pure functional programming for smart contracts as a way to somehow solve all logical bugs, which is nonsense.
- raverbashing 9y agoOf course it won't solve all bugs, but it's easier to specify a series of conditions as a functional description rather than writing a stack vm program.
- mbrock 9y agoYou seem to be comparing a high-level functional language to a low-level bytecode. I don't think it's easier to specify a series of conditions in a functional language than in an imperative language, generally speaking.