logoalt Hacker News

Sharlinyesterday at 11:47 AM1 replyview on HN

I was talking about libraries, higher-level units of reuse than individual functions. And your "syntactic" vs "semantic" reuse makes zero sense. Functions are literally written and invoked for their semantics – what they make happen. "Syntactic reuse" would be macros if anything, and indeed macros are very good at reducing boilerplate.

You might have a more compelling argument if instead of syntax and semantics you contrasted semantics and pragmatics.


Replies

porridgeraisinyesterday at 12:05 PM

A library is a collection of data structures functions. My argument still holds.

> Syntactic reuse would be macros

Well sure. My point is that what can be reused is decided ahead of time and encoded in the syntax. Whereas with LLMs it is not, and is encoded in the semantics.

> Pragmatics

Didn't know what that is. Consider my post updated with the better terms.

show 1 reply