Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Feature Request] Adding option to support triple quotes
- X-seq: zsh-workers 44654
- From: Aryn Starr <whereislelouch@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [Feature Request] Adding option to support triple quotes
- Date: Tue, 13 Aug 2019 10:36:53 +0430
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565676418; bh=kCCa8BMGbWJUhm5IDhN8jjx9z9Oia+spBUCKik99+EU=; h=From:Content-Type:Subject:Message-Id:Date:To; b=VQpUikfZBjAK//IPDBcPRgf6iiM/602qwiTECpMu4EXdMlg01Ge/U9NFmeA/Frm/U cga2uJ0+ZQwpF+AdKWJEpdnt8ckYZjUYE/n5ZqJ214dHW3Yb+mZ4f2h40S931SCJ/V zxWx3KeR1yhsYRiPpn2tI9e4fPLCTUwb/cn8lHwXsPTD6e7alroL1upsR5rOWxBrfc tH7Qofks9yZPMhwQdXk7LaNVXU6Pj9VelfstdJ9epagWRZM4li4Xp/JEiygUkHFlTR pOjh59B/dL4kyH8rdkRUwIYhC1q35l0ACe/4sxGD5JhoA3niSLqsEn01TkgslCoxgt n3olxHPkZrN/w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Adding an option to zsh to support triple quotes (TRIPLE_QUOTES) would make possible much more readable code.
We can have double triple quotes that support `$` interpolation, and triple single quotes that just take raw strings. If it’s possible, we can even make it customizable for the user to set the number of quotes needed to activate this mode; I don’t imagine any one is using 4 consecutive quotes in their current code.
These little conveniences go a long way to make zsh a stronger competitor to scripting languages like Python. zsh is optimized for filesystem and process programming, which necessates some compromises, but things like triple quotes can be introduced to the current syntax with no problem, I think.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author