Hacker News new | ask | show | jobs
by anonymoushn 4353 days ago
Which functional language prevents you from passing buffers by reference?

Edit: I see there are quite a few. Please tell me about one :)

1 comments

Alright ... I didn't mean this to be confusing ... here I'll remove that --- I was referring the whole class of languages which are more driven by purist theory than by practical need. There's quite a few that only support pass-by-value intentionally
C only supports pass-by-value (unless I missed something recent) and it's generally not considered a pure functional language.
C lets you make pointers to arbitrary things, so even if you somehow had a value containing your 1GB buffer, you could pass a pointer to it instead of copying it around.
sorry ... it's 340 am ... i'm screwing up my english. alright ... i'm going to stop replying.