User loginNavigation 
Basic building blocks of a programming languageI've tried to understand category theory, but while I can't say I've got the mathematical skills to understand it, I think I kind of grasp what it intends to do. It is basically a way of building bigger things out of smaller things as flexibly as possible. Designing my language I get inspired by this thought, and started to think along those lines. This means trying to realize what are the basic building blocks from which to build larger blocks, i.e. from where do I start? In an attempt to figure this out, I thought about what languages typically tries to do. What I found so far are: 1. Calculate data, i.e. from data produce some other data, i.e. functions The idea here is to make these elements as versatile as possible, so they can be combined without restriction as long as it is reasonable. Allow functions to generate other functions, hierarchies and/or patterns. Allow hierarchies to contain functions, other hierarchies and/or patterns. Allow patterns to describe functions, hierarchies and/or other patterns. First of all, do you agree that these three could be used as basic building blocks, or is there something missing or wrong? Secondly, the pattern. I can see patterns used in two that seems like distinctly different ways. One is that you write a template like code, which you could see as a patter Perhaps those two cases of patterns should be named differently? Any thoughts on this? By Mats at 20220701 21:25  LtU Forum  previous forum topic  next forum topic  other blogs  6311 reads

Browse archives
Active forum topics

Recent comments
1 week 6 days ago
2 weeks 4 days ago
2 weeks 5 days ago
2 weeks 5 days ago
3 weeks 3 days ago
3 weeks 6 days ago
3 weeks 6 days ago
3 weeks 6 days ago
5 weeks 1 day ago
5 weeks 3 days ago