3 ms·
No it’s not an example of that. Do you store components in your component state?
by an0malous 2mo ago
No it’s not an example of that. Do you store components in your component state?
- cj 2mo agoHe probably means JSX mixing HTML with Javascript... function Greeting({ name }) { return <h1>Hello, {name}</h1>; }
- TeMPOraL 2mo agoYou just did that in a HN comment, yet nothing happened :). Could it be that the whole idea is silly misunderstanding of fundamental tenets of reality in the first place?
- cj 2mo agoWell duh. You can also post a random AI malware prompt, and I can assure you nothing will happen. What's your point?
- TeMPOraL 2mo agoMy point is that "mixing instructions and data" is a red herring, and that reality has no such distinction; what is code and what is data isn't just context-dependent but question-dependent, which you aptly demonstrated by posting "code" that in this context is just "data".
- cj 2mo agoThat's a lot of words to argue that we shouldn't be separating prompts from the (often untrusted) data the prompts are acting on. I still don't see your point.