Skip to main content
-1 votes
0 answers
123 views

I have 2 tables customers and addresses (each customer can have many addresses) The customers table has two fields of interest: userName (varchar) userID (varchar) The addresses table has two fields ...
Mike McP's user avatar
2 votes
2 answers
224 views

Going through a code review and found named argument call being used to a argument that uses the spread operator for variable args (vargs). To my suprise it works fine for 1 argument, but I cannot ...
Alex Dawn's user avatar
1 vote
2 answers
214 views

I have an existing method: public function dbQuery( string $query, bool $flag1 = false, int $flag2 = SOME_DEFAULT, bool $flag3 = false ) Now I want to adapt it so it is possible to ...
Alex Dawn's user avatar
0 votes
1 answer
153 views

As I extend Flutter widgets, I'd like a way to pass any properties to the original widget without having to specify them all on my widget three times beforehand, or modifying it every time I want to ...
Chema's user avatar
  • 753
0 votes
0 answers
57 views

yes, i did just do that. the trouble i have is that i can't remove the red underline, and thus my project won't run. InputDecoration error parameter : https://api.flutter.dev/flutter/material/...
JTalbott's user avatar
2 votes
1 answer
395 views

Example: import gradio as gr def dummy(a, b='Hello', c='!'): return '{0} {1} {2}'.format(b, a, c) with gr.Blocks() as demo: txt = gr.Textbox(value="test", label="Query", ...
Franck Dernoncourt's user avatar
1 vote
0 answers
93 views

I'm recursively calling a function in Powershell. When I call the function using positional arguments, I get a ParameterBindingArgumentTransformationException exception, but when I call the function ...
Omnomnious's user avatar
9 votes
3 answers
5k views

I'm in a migration process from javax to jakarta. Our project is build with Spring Boot (thus upgrade from 2.7 to 3.2) and Hibernate (5.6 to 6.3) and we use a PostgreSQL database (V14). One pitfall ...
RainerZufall's user avatar
-1 votes
1 answer
351 views

i have query that is it fine to use to use named parameter which having name parameter and the variable name same in a function call for example fun fun1( to:string ){ //body} fun fun2( ){ to = "...
Tushar Singla's user avatar
1 vote
1 answer
93 views

It is easy and simple to use St_Makevalid method of st_geometry in SQL-statements like documented in https://help.sap.com/docs/SAP_HANA_PLATFORM/cbbbfc20871e4559abfd45a78ad58c02/...
Hannu Huttunen's user avatar
0 votes
1 answer
68 views

I want to write a method that takes named parameters only and a closure. See below. def myMethod(Map args, Closure cl) When I call the method, I can do something like this: myMethod(param1: 'a', ...
Lawrence Zeng's user avatar
0 votes
1 answer
1k views

I am building several very similar objects and it works for all of them, except one. The error trace is: Fatal error: Uncaught Error: Unknown named parameter $hymnus in /THEROUTE/src/App/Models/...
A. Cedano's user avatar
  • 1,079
2 votes
1 answer
162 views

Let's say I have the following function (very simplified, to explain the gist of the issue): def func(a=None, b=None, c=None): return 100-(a+b*c) The purpose of this function is eventually to ...
J-J-J's user avatar
  • 182
0 votes
1 answer
53 views

I get the following error: The argument type 'void Function(String?)' can't be assigned to the parameter type 'void Function()?' when I this in my code: void openNoteBox(String? docID) {} ... ***...
Dennis's user avatar
  • 3
3 votes
1 answer
249 views

Given example with @NamedVariant groovy transform - everything works as expected: import groovy.transform.NamedVariant class A { @NamedVariant def func(String key1 = "val1", String ...
Maciek's user avatar
  • 516

15 30 50 per page
1
2 3 4 5
26