I find (list x) to be cleaner than (cons x '()) On 1/15/13, David A. Wheeler <dwhee...@dwheeler.com> wrote: > Style question! I'd the BNF to not only be correct, but *obviously* > correct. > > In a number of places I use list with 1 parameter; would it be clearer to > use (cons x '()) instead? > > For example, the two cases in the body production (rewritten in Scheme) > are: > ... (cons i_expr body1) ; more bodies > ... (list i_expr) ; the end > > would it be clearer if it was rewritten to: > ... (cons i_expr body1) > ... (cons i_expr '()) > > > SRFI-49 uses 1-parameter "list" the way we're currently using it. > > --- David A. Wheeler > > ------------------------------------------------------------------------------ > Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS > and more. Get SQL Server skills now (including 2012) with LearnDevNow - > 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only - learn more at: > http://p.sf.net/sfu/learnmore_122512 > _______________________________________________ > Readable-discuss mailing list > Readable-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/readable-discuss >
------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss