> Code snippets get detached from `#lang` lines all the time, especially in
> sometimes-terse 'social media' like email, chat, blogs, Twitter, etc.

Although this can be a problem, I think it's already a problem in
Racket -- and generally.

Example: Spend time answering a Racket question on Stack Overflow.
Discover it's N/A because they didn't mention they're using `#lang
bsl`. /headdesk.  Although often there are clues in the code itself --
or in meta-data like the date or the user's rep -- sometimes you just
can't tell.

But even without `#lang`, there's the plain old way this can be a
problem. Let's say `#lang racket/base` does add `:keywords` in 7.1, as
you want. Hooray! You post a code snippet using them. I try it with
7.0. Boo!

Non-trivial code snippets have assumptions. The `#lang` line is
actually a way for people to supply some of that explicitly in code --
which is good. (Of course, regardless of whether they can do so using
#lang or prose, people will forget to include information on teh
interwebs. I am currently working hard to solve this problem
generally.)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to