Deno: Rename xeval?

Created on 8 May 2019  路  6Comments  路  Source: denoland/deno

"deno xeval" is a new command that evaluates a script for each line of stdin (it also supports other delimiters other than \n)

It is named after xargs, the unix command. But I suspect many users will not know xargs, or even if they do not make the connection. So maybe "xeval" is confusing.

  1. Is xeval a good name?
  2. If not what is? Alternative suggestions include "deno each" and "deno foreach"

Most helpful comment

I propose eval-lines, I know this doen't relay alternative delimiters but seems a lot clearer. Otherwise eval-each would also be good: more explicit than each.

All 6 comments

I propose eval-lines, I know this doen't relay alternative delimiters but seems a lot clearer. Otherwise eval-each would also be good: more explicit than each.

IMHO xeval is fine - it's short and actually resembles xargs. Though it's probably a good idea to add a note to docs to suggest similarities between xeval and xargs

Any update on this issue @ry?

How to use it? ;-(

UPD: STDIN places in $, ty

I vote for eval-each

Closed in favor of #3230

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidbarratt picture davidbarratt  路  3Comments

ry picture ry  路  3Comments

benjamingr picture benjamingr  路  3Comments

kyeotic picture kyeotic  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments