-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
!require has no effect on input width #213
Comments
Isn't this underconstrained? Can't the width be any value above 100? |
Yes. However it ends up being 0 which is below 100. I deliberately minimized the amount of code for the bug report. The original code is "under" constrained only in the sense that virtually all constraint programming is under-constrained precisely so it can be adaptive. |
Would you rather have the value to be 100000000 or 2725152848 or 28171? It won't choose 100 unless you add #query[width] == 0 !weak |
Try >= ? |
🙌 |
I revised the bug report to include Note that this does provide the engine with an upper bounds on |
your vfl is not bound to edges of the window. in(::window) dows nothing in this case. Use vertical pipes at the boundaries |
I saw nothing in the vfl documentation permitting the last syntax that (kind of) worked. Am I looking in the wrong place for vfl syntax? Does the absence of debugging despite the presence of |
first two are correct. Make sure you get GSS to know width of your elements (by constraining them or binding them to intrinsic width). |
Thanks for clarifying your suggested work around. However, prior to filing this bug report, I had already found a number of workarounds. Even your workaround is inadequate (or is still insufficiently clear). For example, the phrase "know the width" is either inconsistent with constraint programming (permitting a range of values doesn't specify the value and is the entire point of constraint programming) or, if "know" means "know both the upper and lower bound", this should work with or without the vertical bar and/or the
A glossary is needed in the GSS documentation. "Determined" (or the more pedantic "critically constrained") clearly denotes constraint to a single value. "Underconstrained" apparently means something other than "unconstrained on at least one of the two bounds". "Adequately Constrained" is unclear since it doesn't mean "known upper and lower bounds". Moreover, the normal use case for constraint programming, which is "Adequately Constrained", whatever that means, with upper bound > lower bound, apparently has no technical term at all -- unless one uses the awkward phrase "adequately constrained but not determined". |
#query[width] <= ::window[width] ; |
Load this with
?log=1
and note#query[width]
has a value of 0.The text was updated successfully, but these errors were encountered: