With Swift, the programming language is no longer a difficult part of iOS programming. That difficulty now shifts to the iOS frameworks. Although very powerful, these frameworks take time to learn.
So why not allow iOS developers to easily and automatically share small code fragments with each other and have the compiler automatically use them to provide warnings as to how to code various tasks better?
Recommended rewrites by the compiler would only involve small code fragments seen from multiple independent sources and so are unlikely to contain any sensitive code.
So why not allow iOS developers to easily and automatically share small code fragments with each other and have the compiler automatically use them to provide warnings as to how to code various tasks better?
As I understand it, this is very much out of scope for *this* project. Swift aims to (eventually) be a general purpose programming language.
What you’re talking about is more relevant to an IDE or development aid for a specific narrowed purpose. You might be better off filing a radar against Xcode for example.
Correct me if I am wrong, but what you want is to share code fragments from
a given codebase which wouldn't compile on their own(say, because they
depend on parts of the codebase you don't want to share) but do contain
compiler annotations as if they were compiled as part of the original
codebase.
To me this looks like more of a development tool thing than a language
thing.
···
On Sun, Dec 6, 2015 at 7:56 PM, Roshan <thisisroshansmail@gmail.com> wrote:
Correct me if I am wrong, but what you want is to share code fragments
from a given codebase which wouldn't compile on their own(say, because they
depend on parts of the codebase you don't want to share) but do contain
compiler annotations as if they were compiled as part of the original
codebase.
To me this looks like more of a development tool thing than a language
thing.
On Sun, Dec 6, 2015 at 7:46 PM, Amir Michail via swift-evolution < > swift-evolution@swift.org> wrote:
With Swift, the programming language is no longer a difficult part of iOS
programming. That difficulty now shifts to the iOS frameworks. Although
very powerful, these frameworks take time to learn.
So why not allow iOS developers to easily and automatically share small
code fragments with each other and have the compiler automatically use them
to provide warnings as to how to code various tasks better?
Recommended rewrites by the compiler would only involve small code
fragments seen from multiple independent sources and so are unlikely to
contain any sensitive code.
Correct me if I am wrong, but what you want is to share code fragments from a given codebase which wouldn't compile on their own(say, because they depend on parts of the codebase you don't want to share) but do contain compiler annotations as if they were compiled as part of the original codebase.
To me this looks like more of a development tool thing than a language thing.
I think the lines between languages, their frameworks, and their tools can be arbitrary sometimes.
In any case, making automatic code fragment sharing part of the language would result in a lot more sharing.
···
On Dec 6, 2015, at 9:29 AM, Roshan <thisisroshansmail@gmail.com> wrote:
On Sun, Dec 6, 2015 at 7:56 PM, Roshan <thisisroshansmail@gmail.com <mailto:thisisroshansmail@gmail.com>> wrote:
Correct me if I am wrong, but what you want is to share code fragments from a given codebase which wouldn't compile on their own(say, because they depend on parts of the codebase you don't want to share) but do contain compiler annotations as if they were compiled as part of the original codebase.
To me this looks like more of a development tool thing than a language thing.
On Sun, Dec 6, 2015 at 7:46 PM, Amir Michail via swift-evolution <swift-evolution@swift.org <mailto:swift-evolution@swift.org>> wrote:
With Swift, the programming language is no longer a difficult part of iOS programming. That difficulty now shifts to the iOS frameworks. Although very powerful, these frameworks take time to learn.
So why not allow iOS developers to easily and automatically share small code fragments with each other and have the compiler automatically use them to provide warnings as to how to code various tasks better?
Recommended rewrites by the compiler would only involve small code fragments seen from multiple independent sources and so are unlikely to contain any sensitive code.