Open before closed.
The future is decentralized.
A chuzzled object is nil if it is falsy, otherwise it has its falsy parts removed.
License: MIT License
Open before closed.
The future is decentralized.
We encountered a crash in ChuzzleKit (as used by PromiseKit) when URL encoding a string that came out of a text field. The issue here is that for performance reasons, UIKit hands out a pointer to the internal mutable string representation (which can be an NSBigMutableString
for long strings) and we were handing that to PromiseKit.
To fix this in our app, we made an immutable copy of the string we get from the text field and use that to call PromiseKit.
However, it would be best if PromiseKit didn't cause a crash if someone does this.
The 'crash' is the following exception at line 16 of Chuzzle.m (the mutable string copy line [(id)self setString:s];
):
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'Attempt to mutate immutable object with replaceCharactersInRange:withString:'
You'd think an NSBigMutableString
would be mutable based on its name, but apparently not in all cases (at least you can't always call setString: on it without this happening).
What is this line for?
@import Foundation.NSCharacterSet;
It doesn't compile on iOS project
Should it be replaced with:
#import <Foundation/NSCharacterSet.h>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.