C++ Logo


Advanced search

Subject: Re: [isocpp-ext] P2320: "The Syntax of Static Reflection" feedback request
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2021-02-16 08:10:31

> Are we sure we will never want pytlon-like :-based slicing syntax?

This doesn't close that door syntactically. A splice is not a postfix
operator, so you could never write:

arr[:blah:] // error: a splice is not a splice

Admittedly, the visuals of slicing a splice are interesting:


But I can train myself to read these for what they are.


SG7 list run by sg7-owner@lists.isocpp.org

Older Archives on Google Groups