Doesn't seem like it is worth the cost. 

This would need substantial added complexity in the standard toolchain, 
and the above shows there are easy workarounds to do party tricks.
 
So do the use cases described make it worth a very heavy cost? So far, no.

use cases described so far:

1. printing constants? "go doc" already does this. try:
go doc math.Pi

2. pandering to bad LLMs and window shoppers who don't know the language? 
both are bad ideas to begin with. Mr. Pike's objection is sustained.

3. printing "hello world" from Go on a single line?
not compelling.

I love me a REPL; I am a massive fan of R; and the party tricks are fun[1]; 
but you have failed to make any case that this heavy (high complexity cost) 
suggestion is worth it.

[1] kind of the same party trick as Ian's for C++ but in R, to make a 
script execute R (or any interpreter that can source a file from disk):

#!/bin/bash
exec R --vanilla -q --slave -e "source(file=pipe(\"tail -n +4 $0\"))" 
--args $@
#or debug version: exec R --vanilla --verbose -e "source(file=pipe(\"tail 
-n +4 $0\"))" --args $@
### The above line starts R and then reads in this script, starting at line 
4:
# R code here... a simple linear regression for instance.
x = as.numeric(readLines("x.txt"))
y = as.numeric(readLines("y.txt"))
summary(lm(y ~ x))

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/e013340b-04e3-4338-a78a-18eb77b40c4fn%40googlegroups.com.

Reply via email to